package com.hps.demo.service;

import com.hps.demo.annotation.RpcService;
import com.hps.demo.api.CalculatorService;

/**
 * @Author hps
 * @Description:
 * @Date Created in 19:59 2019/7/11
 */
@RpcService
public class CalculatorServiceImpl implements CalculatorService {
    @Override
    public int add(int a, int b) {
        return a + b;
    }

    @Override
    public int sub(int a, int b) {
        return a - b;
    }

    @Override
    public int mul(int a, int b) {
        return a * b;
    }

    @Override
    public int div(int a, int b) {
        return a / b;
    }
}
